package com.xiaoyu.daggertest.module;

import com.xiaoyu.daggertest.PerWeapon;
import com.xiaoyu.daggertest.bean.gun.FireArm;
import com.xiaoyu.daggertest.bean.gun.Rifle;
import com.xiaoyu.daggertest.bean.gun.Spear;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by yaodonglv on 2018/3/14.
 */

@Module
public class GunModule {

    @PerWeapon
    @Provides
    Rifle provideRifleGun() {
        return new Rifle();
    }

    @PerWeapon
    @Provides
    FireArm provideFireArmGun() {
        return new FireArm();
    }

    @PerWeapon
    @Provides
    Spear provideSpearGun() {
        return new Spear();
    }


}
